package com.yyfax.pay.vo.depository;

import java.io.Serializable;
import java.util.Date;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * 用户协议绑定发送短信请求参数
 * 
 * @author buyi
 * @date 2018-06-13 16:32:54
 * @since v2.2.2
 */
@SuppressWarnings("serial")
public class UserProtocolSignSmsReq implements Serializable {
	@NotBlank(message = "orderId不能为空")
	@Length(max = 30, message = "orderId长度不能超过30")
	private String orderId;

	@NotBlank(message = "orderTime不能为空")
	private String orderTime;

	@NotBlank(message = "userId不能为空")
	@Length(max = 50, message = "userId长度不能超过50")
	private String userId;

	@NotBlank(message = "loginId不能为空")
	@Length(max = 30, message = "loginId长度不能超过30")
	private String loginId;

	@NotBlank(message = "name不能为空")
	@Length(max = 30, message = "name长度不能超过30")
	private String name;

	@NotBlank(message = "cardNo不能为空")
	@Length(max = 30, message = "cardNo长度不能超过30")
	private String cardNo;

	@NotBlank(message = "idNo不能为空")
	@Length(max = 18, message = "idNo长度不能超过18")
	private String idNo;

	@NotNull(message = "indateNum不能为空")
	@Min(value = 1, message = "indateNum不能小于1")
	@Max(value = 36, message = "indateNum不能大于36")
	private Integer indateNum;

	@NotBlank(message = "phone不能为空")
	@Length(max = 11, message = "phone长度不能超过11")
	private String phone;

	@NotBlank(message = "terminal不能为空")
	@Length(max = 1, message = "terminal长度不能超过1")
	private String terminal;

	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}

	public String getOrderTime() {
		return orderTime;
	}

	public void setOrderTime(String orderTime) {
		this.orderTime = orderTime;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLoginId() {
		return loginId;
	}

	public void setLoginId(String loginId) {
		this.loginId = loginId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCardNo() {
		return cardNo;
	}

	public void setCardNo(String cardNo) {
		this.cardNo = cardNo;
	}

	public String getIdNo() {
		return idNo;
	}

	public void setIdNo(String idNo) {
		this.idNo = idNo;
	}

	public Integer getIndateNum() {
		return indateNum;
	}

	public void setIndateNum(Integer indateNum) {
		this.indateNum = indateNum;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getTerminal() {
		return terminal;
	}

	public void setTerminal(String terminal) {
		this.terminal = terminal;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
	}
}
